import request from '../utils/request'

// 访客统计
export const countList = (params: any) => {
  return request.get('visit/visituser/count', params)
}

// 访客列表 
export const visitList = (params: any) => {
  return request.get('visit/visituser/list', params)
}

// 访客详情
export const vxq = (data:any) => {
  return request.get('visit/visituser/show', data)
}

// 审核
export const audit = (data:any) => {
  return request.get('visit/visituser/isgree', data)
}

// 部门列表
export const departmentList = () => {
  return request.get('visit/department/list')
}

// 添加访客登记
export const visitAdd = (params: any) => {
  return request.post('visit/visituser/add', params)
}

// 访客登记 导出excel
export const visituserExcel = (params?: any) => {
  return request.get('visit/visituser/export', params)
}


// 审核列表
export const auditlist = (data:any) => {
  return request.get('visit/auditlog/list', data)
}

// 审核列表详情
export const auditlog = (data:any) => {
  return request.get('visit/auditlog/show', data)
}

// 系统设置 网站设置
export const systemctl = () => {
  return request.get('visit/systemctl/settinglist')
}

// 系统设置 网站设置 添加
export const settinglist = (data:any) => {
  return request.post('visit/systemctl/settinglist/edit',data)
}

// 系统设置 表格列表
export const systemctlField = () => {
  return request.get('visit/systemctl/field')
}

// 系统设置 表格列表 添加/修改
export const systemctlEdit = (data?:any) => {
  return request.post('visit/systemctl/field/edit',data)
}

